package com.atguigu.ssm.service;

import com.atguigu.ssm.pojo.Employee;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

public interface EmployeeService {

    //获取所有员工列表
    List<Employee> getAllEmployee();

    //查询员工分页信息
    PageInfo<Employee> getEmployeePage(Integer pageNum);

    //保存员工信息
    void save(Employee employee);

    //根据员工 id 删除员工
    void deleteEmployee(Integer empId);

    Employee getEmployeeById(Integer empId);

    void updateEmp(Employee employee);
}
